package com.aistar.pojo;

import java.io.Serializable;
import java.util.Date;

public class Contest implements Serializable {
    private Integer contestId;

    private Integer programId1;

    private Integer programId2;

    private Integer programId3;

    private String contestName;

    private Date contestStartTime;

    private Date contestEndTime;

    private Integer contestJoinPer;

    private Integer contestPassPer;

    private Integer status;

    private String other1;

    private String other2;

    private static final long serialVersionUID = 1L;

    public Integer getContestId() {
        return contestId;
    }

    public void setContestId(Integer contestId) {
        this.contestId = contestId;
    }

    public Integer getProgramId1() {
        return programId1;
    }

    public void setProgramId1(Integer programId1) {
        this.programId1 = programId1;
    }

    public Integer getProgramId2() {
        return programId2;
    }

    public void setProgramId2(Integer programId2) {
        this.programId2 = programId2;
    }

    public Integer getProgramId3() {
        return programId3;
    }

    public void setProgramId3(Integer programId3) {
        this.programId3 = programId3;
    }

    public String getContestName() {
        return contestName;
    }

    public void setContestName(String contestName) {
        this.contestName = contestName == null ? null : contestName.trim();
    }

    public Date getContestStartTime() {
        return contestStartTime;
    }

    public void setContestStartTime(Date contestStartTime) {
        this.contestStartTime = contestStartTime;
    }

    public Date getContestEndTime() {
        return contestEndTime;
    }

    public void setContestEndTime(Date contestEndTime) {
        this.contestEndTime = contestEndTime;
    }

    public Integer getContestJoinPer() {
        return contestJoinPer;
    }

    public void setContestJoinPer(Integer contestJoinPer) {
        this.contestJoinPer = contestJoinPer;
    }

    public Integer getContestPassPer() {
        return contestPassPer;
    }

    public void setContestPassPer(Integer contestPassPer) {
        this.contestPassPer = contestPassPer;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getOther1() {
        return other1;
    }

    public void setOther1(String other1) {
        this.other1 = other1 == null ? null : other1.trim();
    }

    public String getOther2() {
        return other2;
    }

    public void setOther2(String other2) {
        this.other2 = other2 == null ? null : other2.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", contestId=").append(contestId);
        sb.append(", programId1=").append(programId1);
        sb.append(", programId2=").append(programId2);
        sb.append(", programId3=").append(programId3);
        sb.append(", contestName=").append(contestName);
        sb.append(", contestStartTime=").append(contestStartTime);
        sb.append(", contestEndTime=").append(contestEndTime);
        sb.append(", contestJoinPer=").append(contestJoinPer);
        sb.append(", contestPassPer=").append(contestPassPer);
        sb.append(", status=").append(status);
        sb.append(", other1=").append(other1);
        sb.append(", other2=").append(other2);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}